package com.sxf.controller.blog.admin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.sxf.cache.CacheTool;
import com.sxf.controller.SuperController;

@Controller
@RequestMapping("blog/admin")
public class AdminController extends SuperController {

	@RequestMapping("")
	public ModelAndView toIndex() throws Exception {
		ModelAndView mav = new ModelAndView();
		String blogname = CacheTool.getOption("blogname");
		mav.addObject("blogname", blogname);
		mav.setViewName("blog/admin/frame");
		return mav;
	}
}
